<div>
    <f:if condition="{singleElement}">
        <h3>{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:elementHistory')}</h3>
        <f:if condition="{fullHistoryUrl}">
            <a href="{fullHistoryUrl}" class="btn btn-default" style="margin-bottom: 5px;">{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:elementHistory_link')}</a>
        </f:if>
    </f:if>
    <div id="element-history-settings">
        <div class="row">
            <div class="col-sm-12 col-md-6 col-lg-4">
                <div class="panel panel-default">
                    <div class="panel-heading">{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:settings')}</div>
                    <table class="table">
                        <f:for each="{settings}" as="values" key="key">
                            <tr>
                                <td>{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:{key}')}</td>
                                <td>
                                    <div class="btn-group">
                                        <button class="btn btn-default dropdown-toggle" type="button" id="copymodeSelector"
                                                        data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                                            <f:for each="{currentSelection}" as="currentSelectionValue" key="currentSelectionKey">
                                                <f:if condition="{currentSelectionKey} == {key}">
                                                    <f:then>
                                                        <f:if condition="{currentSelectionValue}">
                                                            <f:then>
                                                                <f:for each="{values}" as="singleValue" key="singleKey">
                                                                    <f:if condition="{currentSelectionValue} == {singleKey}">
                                                                        <f:then>
                                                                            <f:if condition="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:{singleValue.value}')}">
                                                                                <f:then>{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:{singleValue.value}')}</f:then>
                                                                                <f:else>{singleValue.value}</f:else>
                                                                            </f:if>
                                                                        </f:then>
                                                                    </f:if>
                                                                </f:for>
                                                            </f:then>
                                                            <f:else>
                                                                <f:for each="{values}" as="singleValue" iteration="iterator">
                                                                    <f:if condition="{iterator.isFirst}">
                                                                        <f:then>
                                                                            <f:if condition="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:{singleValue.value}')}">
                                                                                <f:then>{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:{singleValue.value}')}</f:then>
                                                                                <f:else>{singleValue.value}</f:else>
                                                                            </f:if>
                                                                        </f:then>
                                                                    </f:if>
                                                                </f:for>
                                                            </f:else>
                                                        </f:if>
                                                    </f:then>
                                                </f:if>
                                            </f:for>
                                            <span class="caret"></span>
                                        </button>
                                        <ul class="dropdown-menu" aria-labelledby="copymodeSelector">
                                            <f:for each="{values}" as="singleValue" key="singleKey">
                                                <li><a href="{singleValue.scriptUrl}">
                                                    <f:if condition="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:{singleValue.value}')}">
                                                        <f:then>{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_show_rechis.xlf:{singleValue.value}')}</f:then>
                                                        <f:else>{singleValue.value}</f:else>
                                                    </f:if>
                                                </a></li>
                                            </f:for>
                                        </ul>
                                    </div>
                                </td>
                            </tr>
                        </f:for>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
